<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="boletinesAcademicos form">
<?php echo $this->Form->create('BoletinesAcademico');?>
	<fieldset>
 		<legend><?php __('Agregar Boletines Academicos'); ?></legend>	
 		<?php 			
 			$disable=($group_id == '6')?true:false; 					
 		?>
	<table  id="myTable" cellpadding="0" cellspacing="0">
	 		<tr>										
				<th class="actions"><?php __('NOMBRE INSTITUCION MADRE');?></th>
				<th class="actions"><?php __('No. DE SESIONES DE CIRCULOS ABIERTO PROGRAMADAS');?></th>
				<th class="actions"><?php __('No. DE SESIONES REALIZADAS');?></th>
				<th class="actions"><?php __('No. DE FAMILIAS PARTICIPANTES');?></th>
				<th class="actions"><?php __('DESCRIPCION DEL PROCESO DESARROLLADO');?></th>						
			</tr>			
			<tr>					
			<?php									
					foreach($registros as $iem){	
						$iems = array();
						$registro_id = $iem['BoletinesAcademico']['id'];
						$iems = $this->Boletines->registro($registro_id);
						$i = $iems['BoletinesAcademico']['id'];			
						 ?>								
						<td><?php echo $this->Form->label($iem['Iem']['nombre']);?></td>
						<?php 
							echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[id_iem]['.$i.']',
															  'id'=>'data[id_iem]['.$i.']','value'=>$iems['BoletinesAcademico']['iem_id']));
						
							echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[id_registro]['.$i.']',
															  'id'=>'data[id_registro]['.$i.']','value'=>$iems['BoletinesAcademico']['id']));
							  ?>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[sesion_programada]['.$i.']', 
														'name'=>'data[sesion_programada]['.$i.']', 'class' => 'text_asistencia', 
														'type'=>'text', 'value'=>$iems['BoletinesAcademico']['sesion_programada'],'disabled'=>$disable))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[sesion_realizada]['.$i.']', 
														'name'=>'data[sesion_realizada]['.$i.']', 'class' => 'text_asistencia', 
														'type'=>'text', 'value'=>$iems['BoletinesAcademico']['sesion_realizada'],'disabled'=>$disable))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[familias_participante]['.$i.']', 
														'name'=>'data[familias_participante]['.$i.']', 'class' => 'text_asistencia', 
														'type'=>'text', 'value'=>$iems['BoletinesAcademico']['familias_participante'],'disabled'=>$disable))?></td>
						<td><?php echo $this->Form->textarea(null, array('label'=>'', 'id'=>'data[descripcion]['.$i.']', 
														'name'=>'data[descripcion]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$iems['BoletinesAcademico']['descripcion'],'disabled'=>$disable))?></td>																
			</tr>
			<?php } ?>
		</table>
	</fieldset>
<?php 
	echo $this->Form->input('zona', array('type'=>'hidden', 'value'=>$zona));
	echo $this->Form->input('num', array('type'=>'hidden', 'value'=>$bimestre));
	echo $this->Form->input('year', array('type'=>'hidden', 'value'=>$year));
?>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>